A Type and Effect System for Contract Monitoring

نویسندگان

  • Cameron Swords
  • Amr Sabry
چکیده

Behavioral contracts have long been heralded as a transparent mechanism which can only affect the semantics of programs by detecting contract violations. This claim persists despite several results going back at least five years that point out to the “effectful” nature of contracts. Indeed, in a typical contract system, the predicates embedded in contracts are sliced and diced and scattered around the program to be enforced or not depending on various, apparently unrelated, control and data flow decisions. In addition, practical contract systems allow the contract writer to execute code and explore data structures that would not have otherwise been executed or explored. Previous attempts to address this problem have focused on devising restrictions on contracts to tame their effects. In this paper, we explore an alternative approach that accepts current implementations of practical contract systems “as is.” Technically, we design and implement a contract system in which contracts specify, not just what predicate to check, but also how to check it, along with a type system that tracks which checks have been performed and which have been deferred. The system unifies and subsumes various previous approaches and explains the semantics of realistic contract systems that employ various strategies for enforcing contracts.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Effects of Contracts of Patients Suspected of Having COVID 19 Based on Health System

One of the most important social activities of the members of the society is the operations related to the contracts that they conclude. Pursuant to the principle of contractual freedom, individuals are free to act in accordance with their wishes.  One of the obstacles to enforcing this principle is public order. COVID 19 disease as a disease with a high epidemic rate with potentially fatal eff...

متن کامل

ارانه الگوی رتبه بندی HSE پیمانکاران پیش از عقد قرارداد بر اساس سطح پیمان

  Background and aims: ‏ Evaluation of the contractor’s HSE is a key issue for the employer that influences the selection of a contractor. An appropriate method of assessment can play a significant role in the selection of qualified contractors. This paper presents a new method for ranking of contractor’s HSE at pre-contract stage of a project.   Methods: To develop this new evaluation method, ...

متن کامل

Collateral as Signal Variable in a Business Partnership Contract: A Case Study of Refah Kargaran Bank

  There is no convergence in the results of the credit relationship between the financial contracting parties (banks and customers) due to the different importance of the contract variables. Therefore, while examining the impact of the empirical relationship between the variables commercial profit-loss sharing contracts, the dual role of the collateral variable (screening and motivation) is in...

متن کامل

Modelling and Experimental Testing of Asymmetric Information Problems in Lease and Hire Contracts (Based on Contract Theory)

This article aims to study lease and hiring contract in the Iranian-Islamic setting and analyze the asymmetric information problem in these contracts. For doing this, we study the characteristics of lease and hiring contracts in Iran (real world experimental characteristics that recognized in other studies), using library method, then we mathematically model different aspects of asymmetric info...

متن کامل

Modeling and Numerical Analysis of Revenue Sharing Contract Based on the Stackelberge Game Theory

Considered supply chain in this article consists of one vendor and multiple retailers where the vendor applies vendor managed inventory. Considering vendor as a leader and retailers as followers, Stackelberg game theory is applied for modeling and analyzing this system. A general mixed integer nonlinear model is developed which can optimizes the performance of the system under revenue sharing c...

متن کامل

The Beneficiaries’ Rights Observation in Depositing Operation of Riba-Free Banking System by Corporate Governance View

The banking system is executed by many beneficiaries such as depositors, borrowers, banking services customers, stockholders, banking staff and managers and etc. The beneficiaries’ rights observation of banking that usually is known as Corporate Governance in banking, has constructive effects on economic. The main goal of the research is the survey of beneficiaries’ rights observation in deposi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2013